//
//  TestCollectionPageFlowTableViewCell_6.m
//  MKUITestApp
//
//  Created by 苏尚进 on 2022/3/4.
//  Copyright © 2022 moon. All rights reserved.
//

#import "TestCollectionPageFlowTableViewCell_6.h"
#import "MenuCollectionViewCell_OnlyImage.h"

@implementation TestCollectionPageFlowTableViewCell_6

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.pageFlowLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    }
    return self;
}
+ (Class)pageFlowLayoutClass{
    return [MKUICollectionViewPagePickerFlowLayout class];
}
+ (Class)pageCellClass{
    return [MenuCollectionViewCell_OnlyImage class];
}
- (CGSize)collectionView:(UICollectionView *)collectionView pageFlowLayout:(MKUICollectionViewPageFlowLayout *)collectionViewLayout itemSizeForItemAtIndexPath:(NSIndexPath *)indexPath{
    CGRect bounds = collectionView.bounds;
    CGSize size = bounds.size;
    size.width = size.height = 44;
    return size;
}

@end
